<!DOCTYPE html>
<html>

<head>
    <meta charset="UTF-8">
    <title>存入数据库</title>
</head>

<body>

<style>
    h1 {
        font-size: 30px;
        text-align: center;
    }

    button {
        font-size: 20px;
        width: 150px;
        height: 50px;
        display: block;
        margin: 0 auto;
    }
</style>

<link rel="stylesheet" href="{{ url_for('static', filename='css/style4.css') }}">

<div class="container">
    <nav class="navbar navbar-default" role="navigation">
    <h1>东方财富网爬虫服务</h1>
    </nav>
</div>

<br><br><br><br>

<button id="send">存入数据库</button>

<br><br>

<div class="progress" hidden>
    <div class="progress-bar" role="progressbar" aria-valuenow="1" aria-valuemin="0" aria-valuemax="100"
         style="width: 1%">1%
    </div>
</div>

</body>
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
<script type="text/javascript">
    $("button").click(function () {
        $.get("/button2", function (data, status) {
            alert("Data: " + data + "\nStatus: " + status);
        });
    });
</script>
</html>
